
export default {
  data() {
    return {
      fieldList: [
        { name: '标题', field: 'field1' },
        { name: '供应商编号', field: 'field2' },
        { name: '供应商全称', field: 'field3' },
        { name: '供应商简称', field: 'field4' },
        { name: '开户行', field: 'field5' },
      ],
      
      evaluateStatusOption: [
        { label: '待评估', value: '1' },
        { label: '查询有误', value: '2' },
        { label: '已评估', value: '3' },
      ],
      evaluateStatusEnum: {
        '1': '待评估',
        '2': '查询有误',
        '3': '已完成',
      },
      
      createTypeOption: [
        { label: '代录入', value: '1' },
        { label: '导入', value: '2' },
        { label: '供应商录入', value: '3' },
      ],
      createTypeEnum: {
        '1': '代录入',
        '2': '导入',
        '3': '供应商录入',
      },
      
      supplierStatusOption: [
        { label: '潜在供应商', value: '1' },
        { label: '准入供应商', value: '2' },
        { label: '淘汰供应商', value: '3' }
      ],
      supplierStatusEnum: {
        '1': '潜在供应商',
        '2': '准入供应商',
        '3': '淘汰供应商',
      },

      columns: [
        { title: '序号', width: 50, customRender: (text, record, index) => `${index + 1}`, align: 'center', },
        { title: '供应商状态', dataIndex: 'supplierStatus', width: 100, scopedSlots: { customRender: 'supplierStatus' }, ellipsis: true },
        { title: '评估状态', dataIndex: 'evaluateStatus', width: 100, scopedSlots: { customRender: 'evaluateStatus' }, ellipsis: true },
        { title: '统一社会信用代码', dataIndex: 'uscCode', width: 220, ellipsis: true },
        { title: '供应商全称', dataIndex: 'supplierFullName', width: 220, ellipsis: true },
        { title: '经营范围', dataIndex: 'businessScope', width: 220, ellipsis: true },
        { title: '联系地址', dataIndex: 'contactAddress', width: 220, ellipsis: true },
        { title: '法定代表人', dataIndex: 'legalRepresentative', width: 100, ellipsis: true },
        { title: '联系电话', dataIndex: 'contactPhone', width: 120, ellipsis: true },
        { title: '查询渠道', dataIndex: 'InquiryChannel', width: 120, ellipsis: true },
        { title: '开户行', dataIndex: 'depositBank', width: 120, ellipsis: true },
        { title: '收款账号', dataIndex: 'receivablesAccount', width: 200, ellipsis: true },
        { title: '收款人', dataIndex: 'payee', width: 120, ellipsis: true },
        { title: '创建类型', dataIndex: 'createType', width: 120, scopedSlots: { customRender: 'createType' }, ellipsis: true },
        { title: '创建人', dataIndex: 'createPerson', width: 120, ellipsis: true },
        { title: '创建时间', dataIndex: 'createTime', width: 120, scopedSlots: { customRender: 'date' }, ellipsis: true },
        { title: '更新时间', dataIndex: 'updateTime', width: 120, scopedSlots: { customRender: 'date' }, ellipsis: true },
        { title: '操作', dataIndex: 'action', width: 200, align: 'center', fixed: 'right', scopedSlots: { customRender: 'action' } }
      ]
    }
  }
}